package cn.hsa.fqz.task.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName region
 */
@TableName(value ="region")
public class RegionDO implements Serializable {
    /**
     * 
     */
    private Integer region;

    /**
     * 
     */
    private String country;

    /**
     * 
     */
    private String provice;

    /**
     * 
     */
    private String city;

    /**
     * 
     */
    private String distrinct;

    /**
     * 
     */
    private String pRegion;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getRegion() {
        return region;
    }

    /**
     * 
     */
    public void setRegion(Integer region) {
        this.region = region;
    }

    /**
     * 
     */
    public String getCountry() {
        return country;
    }

    /**
     * 
     */
    public void setCountry(String country) {
        this.country = country;
    }

    /**
     * 
     */
    public String getProvice() {
        return provice;
    }

    /**
     * 
     */
    public void setProvice(String provice) {
        this.provice = provice;
    }

    /**
     * 
     */
    public String getCity() {
        return city;
    }

    /**
     * 
     */
    public void setCity(String city) {
        this.city = city;
    }

    /**
     * 
     */
    public String getDistrinct() {
        return distrinct;
    }

    /**
     * 
     */
    public void setDistrinct(String distrinct) {
        this.distrinct = distrinct;
    }

    /**
     * 
     */
    public String getpRegion() {
        return pRegion;
    }

    /**
     * 
     */
    public void setpRegion(String pRegion) {
        this.pRegion = pRegion;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        RegionDO other = (RegionDO) that;
        return (this.getRegion() == null ? other.getRegion() == null : this.getRegion().equals(other.getRegion()))
            && (this.getCountry() == null ? other.getCountry() == null : this.getCountry().equals(other.getCountry()))
            && (this.getProvice() == null ? other.getProvice() == null : this.getProvice().equals(other.getProvice()))
            && (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity()))
            && (this.getDistrinct() == null ? other.getDistrinct() == null : this.getDistrinct().equals(other.getDistrinct()))
            && (this.getpRegion() == null ? other.getpRegion() == null : this.getpRegion().equals(other.getpRegion()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRegion() == null) ? 0 : getRegion().hashCode());
        result = prime * result + ((getCountry() == null) ? 0 : getCountry().hashCode());
        result = prime * result + ((getProvice() == null) ? 0 : getProvice().hashCode());
        result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
        result = prime * result + ((getDistrinct() == null) ? 0 : getDistrinct().hashCode());
        result = prime * result + ((getpRegion() == null) ? 0 : getpRegion().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", region=").append(region);
        sb.append(", country=").append(country);
        sb.append(", provice=").append(provice);
        sb.append(", city=").append(city);
        sb.append(", distrinct=").append(distrinct);
        sb.append(", pRegion=").append(pRegion);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}